//
//  TNCostAmountTableViewCell.m
//  TravelNotes
//
//  Created by 黄锋 on 15/8/29.
//  Copyright (c) 2015年 王浩宇. All rights reserved.
//

#import "TNCostAmountTableViewCell.h"
#import "Macro.h"

@implementation TNCostAmountTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        _pic = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, 20, 20)];
        [self.contentView addSubview:_pic];
        _consume = [[UILabel alloc] initWithFrame:CGRectMake(40, 10, 40, 20)];
        [self.contentView addSubview:_consume];
        _count = [[UILabel alloc] initWithFrame:CGRectMake(100, 10, SCREEN_WIDTH - 110, 20)];
        _count.textAlignment = NSTextAlignmentRight;
        _count.textColor = [UIColor blueColor];
        _count.adjustsFontSizeToFitWidth = YES;
        [self.contentView addSubview:_count];
        self.selectionStyle = UITableViewCellSelectionStyleNone;
    }
    return self;
}

@end
